FROM java:8-jre

RUN mkdir -p /duckweed-system-biz

WORKDIR /duckweed-system-biz

ARG JAR_FILE=target/duckweed-system-biz.jar

COPY ${JAR_FILE} duckweed-system-biz.jar

EXPOSE 7071

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

CMD sleep 30; java -jar duckweed-system-biz.jar $JAVA_OPTS
